package com.example.lotterysystem.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created with IntelliJ IDEA.
 * Description:活动奖品状态
 * User: Spider-Man
 * Date: 2025-09-12
 * Time: 15:10
 */
@AllArgsConstructor
@Getter
public enum ActivityPrizeStatusEnum {

    INIT(1,"初始化"),

    COMPLETED(2,"被抽取状态");
    private final Integer code;

    private final String message;

    public static ActivityPrizeStatusEnum forName(String name) {
        for(ActivityPrizeStatusEnum activityPrizeStatusEnum :ActivityPrizeStatusEnum.values()) {
            if(activityPrizeStatusEnum.name().equalsIgnoreCase(name)) {
                return activityPrizeStatusEnum;
            }
        }
        return null;
    }
}
